package com.swh.xbsc.service;

import java.util.List;

/**
 * @Author: swh
 * @Description:
 * @Date: 2020/11/17 20:15
 * @Version: 1.0
 */
public interface BaseService<T, I> {
    int deleteByPrimaryKey(I o);

    int delete(T t);

    int insert(T t);

    int insertSelective(T t);

    boolean existsWithPrimaryKey(I o);

    List<T> selectAll();

    T selectByPrimaryKey(I o);

    int selectCount(T t);

    List<T> select(T t);

    T selectOne(T t);

    int updateByPrimaryKey(T t);

    int updateByPrimaryKeySelective(T t);

    int deleteByExample(I o);

    List<T> selectByExample(I o);

}
